package basic4;

import java.util.Scanner;

public class J04_03 {

		public static void main(String[] args) {
			Scanner sc=new Scanner(System.in);
			System.out.println("카드번호를 입력하세요 : ");
			String sc1 = sc.nextLine();
			char num = sc1.charAt(0);
			System.out.println(num);
			
			switch(sc1){
				case "356317" :
					System.out.println("nh농협카드");
					break;
				case "356901" :
					System.out.println("신한카드");
					break;
				case "356912" :
					System.out.println("kb국민카");
					break;
				case "404825" :
					System.out.println("BC카드");
					break;
				case "438675" :
					System.out.println("신한카드");
					break;
				case "457973" :
					System.out.println("국민은행");
					break;
				case "515594" :
					System.out.println("신한카드");
					break;
				case "524353" :
					System.out.println("외한카드");
					break;
				case "540926" :
					System.out.println("국민은행");
					break;
				default : System.out.println("해당카드가 없습니다.");
				
			}
			/*
			switch (num) {
			case 3:
				//sc1.equals("") =문자열과 문자열을 비
				if (sc1.equals("356901")) {
				System.out.println("신한카드");
				}
				else if (sc1.equals("356317")){
					System.out.println("NH농협카드");
				}
				else if (sc1.equals("356912")){
					
					System.out.println("KB국민카드");
				}
				
				break;
				
			case 4:
				if (sc1.equals("404825")) {
					System.out.println("비씨카드");
					}
					else if (sc1.equals("438676")){
						System.out.println("신한카드");
					}
					else if (sc1.equals("457973")){
						
						System.out.println("국민은행");
					}
					
					break;
					
			case 5:
				if (sc1.equals("515594")) {
					System.out.println("신한카드");
					}
					else if (sc1.equals("524353")){
						System.out.println("외한카드");
					}
					else if (sc1.equals("540926")){
						
						System.out.println("국민은행");
					}
					
					break;


			default: System.out.println("해당 은행이 없습니다.");
				break;
			}
			*/
		}


	}


